﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CoffeePotServer
{
    /// <summary>
    /// File: ClientResponseException.cs
    /// Author: James Dibble 10009689
    /// Last Revision: 17/03/12
    /// </summary>
    public class ClientResponseException: System.Exception
    {
        private ExceptionType _type;
        public ClientResponseException(String ExceptionText, ExceptionType ExecptionType):base(ExceptionText)
        {
            _type = ExecptionType;
        }

        public ExceptionType Type
        {
            get { return _type; }
        }

        public enum ExceptionType
        {
            INVALIDPOT,
            INVALIDPROTOCALL,
            INVALIDMETHOD,
            INVALIDREQUEST,
            INVALIDADDITION,
            NOTPOURING,
            OVERFLOWED,
            NOTATEAPOT
        }
    }
}